home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Vertigo / Nub / NubPrefix.h < prev    next >
Text File  |  2000-06-23  |  1KB  |  47 lines

  1. #ifndef _NUBPREFIX_
  2. #define _NUBPREFIX_
  3.  
  4.  
  5. #if __MC68K__
  6.     #if __option(macsbug)
  7.         #define DEBUG            1
  8.     #else
  9.         #define DEBUG            0
  10.     #endif
  11. #elif __POWERPC__
  12.     #if __option(traceback )
  13.         #define DEBUG            1
  14.     #else
  15.         #define DEBUG            0
  16.     #endif
  17. #endif
  18.  
  19. #define DCON                    DEBUG
  20.  
  21.  
  22. // Project prefix for dprintf calls.  This is optional but should be implemented,
  23. // as it provides the ability to distinguish where the output came from when more
  24. // than one entity is using DCon at the same time.  This must be manually added
  25. // to the beginning of each call: dprintf(kDConPrefix "...
  26. #define kDConPrefix                "Nub: "
  27. #define kDConLogName            "Nub"
  28. #define DCONLOG                    DCON && 0
  29.  
  30.  
  31. // CallTracing uses DCon to print an indented listing of when a function enters
  32. // and exits, thus generating a call trace.  Optionally, it can also be used to
  33. // (very) roughly measure the amount of time spent inside a function and all of
  34. // its sub-functions.  To enable call tracing you must add a single line to the
  35. // top of any functions to be traced: CallTrace trace("function name");
  36. #define CALLTRACE                0
  37. #define CALLTRACE_TIMER            0
  38.  
  39.  
  40. // This overrides DCon functions at boot time and funnels a copy of any output
  41. // destined for DCon straight to a VRAM console.  Later after has DCon has had
  42. // a chance to load it'll turn itself off so as to not be completely annoying.
  43. #define MACPRINTENABLED            1
  44.  
  45.  
  46. #endif /* _NUBPREFIX_ */
  47.